package com.idroc.coelacanth.core.dht;

/**
 * 一致性hash节点 行为 观察者
 * @author yuyoo (yuyoo4j@163.com)
 * @date Dec 13, 2009 5:38:19 PM
 */
public interface NodeActionObserver {

	// 节点行为
	static enum NodeAction{OPEN/*开放*/, CLOSE/*关闭*/, INSERT/*插入*/, 
							REPLACE/*取代*/, REPLICA/*复制(冗余)*/, 
							REOPEN/*重新打开*/, NULL/*没有动作*/}
	
	void update(NodeAction na, int nodeNo, ConsistentHashRing ring);
}
